import java.math.BigDecimal;

public class PointDataConstantValue extends BasePointData {



    public PointDataConstantValue(Integer point, String value) {
        super(point,value);


    }

    @Override
    public void joinRealTimeData() {
        if (getPoint() >= 16385) {
            protocolDataContainer.putNumber(getPoint(), new BigDecimal(getValue()));
        } else {
            protocolDataContainer.putBoolean(getPoint(), Boolean.valueOf(getValue()));
        }
    }
}
